/**
 * 
 */
package messaage;

/**
 * @author Olga
 *
 */
public class EditPostMsg extends Message{

	protected String forumID;
	protected String postID;
	protected String content;
	

	public EditPostMsg(String _username, String _forumID,
			String _postID, String _content) {
		this.username = _username;
		this.forumID = _forumID;
		this.postID = _postID;
		this.content = _content;
	}

	@Override
	public String toString() {
		String msg = "EditPostMsg\n " + "Username:" + this.username + "\n"
				+ "ForumID:" + this.forumID +"\nPostId:" + this.postID + "\nNew content:"
				+ this.content + "\n" + '\0';

		return msg;
	}

	public int getForumID() {
		return Integer.parseInt(this.forumID);
	}

	public int getPostID() {
		return Integer.parseInt(postID);
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	
}
